.PHONY: proto data run

proto:
	for f in internal/proto/*/*.proto; do \
		echo "protoc --go_out=plugins=grpc:. $$f;" \
		protoc --go_out=plugins=grpc:. $$f; \
		echo compiled: $$f; \
	done

data:
	go-bindata -o data/bindata.go -pkg data data/*.json

run:
	go build ./cmd/go-micro-services/...
	bash build.sh
	docker-compose up --remove-orphans -d 
